//
//  RecomcCourseCell.swift
//  Auscultation
//
//  Created by 张文博 on 2021/3/21.
//

import UIKit

class RecomcCourseCell: UITableViewCell {
    var model:HomeCourseModel = HomeCourseModel() {
        didSet{
            descL.text = model.presentation
            titleL.text = model.title
            timeL.text = model.typeString ?? "" + "丨" + model.duration + "分钟"
            iconImage.lgf_setImage(model.image)
        }
    }

    
    @IBOutlet weak var backview: UIView!
    @IBOutlet weak var timeL: UILabel!
    @IBOutlet weak var descL: UILabel!
    @IBOutlet weak var titleL: UILabel!
    @IBOutlet weak var iconImage: UIImageView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code

        contentView.backgroundColor = .white
        backview.layer.cornerRadius = 4
        backview.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.15).cgColor
        backview.layer.shadowOffset = CGSize(width: 0, height: 1.5)
        backview.layer.shadowOpacity = 1
        backview.layer.shadowRadius = 4

    }
    
    override func layoutSubviews() {
        superview?.layoutSubviews()
        // fillCode

    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
